<?php

declare(strict_types=1);

namespace App\CustHub\Request;

use Mine\MineFormRequest;

class UserGroupRequest extends MineFormRequest
{
    public function saveRules()
    {
        return [
            'name' => 'required|max:255',
            'seat_quota' => 'required|integer|min:-1'
        ];
    }

    public function updateRules()
    {
        return array_merge([
            'id' => 'required'
        ], $this->saveRules());
    }

    public function deleteRules()
    {
        return [
            'id' => 'required'
        ];
    }

    public function getInfoRules()
    {
        return [
            'group_id' => 'required'
        ];
    }

    public function setSortRules()
    {
        return [
            'ids' => 'required'
        ];
    }
}